-- GENERATED SPELL FOR [Frostwing Chimaera] --


function spell0_24673(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(27050,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24673', 536, 1)
end

function spell1_24673(pUnit, Event) --@Froststorm Breath,n/a--
pUnit:FullCastSpellOnTarget(55491,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24673', 5000, 1)
end

function spell2_24673(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(27047,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24673', 0, 1)
end

function spell3_24673(pUnit, Event) --@Venom Spit,n/a--
pUnit:FullCastSpellOnTarget(16552,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24673', 12500, 1)
end

function Sorts_24673(pUnit, Event)
local choix_sorts_24673 = math.random(0, 3)
if choix_sorts_24673 == 0 then
pUnit:RegisterEvent('spell0_24673', 1, 1)
end
if choix_sorts_24673 == 1 then
pUnit:RegisterEvent('spell1_24673', 1, 1)
end
if choix_sorts_24673 == 2 then
pUnit:RegisterEvent('spell2_24673', 1, 1)
end
if choix_sorts_24673 == 3 then
pUnit:RegisterEvent('spell3_24673', 1, 1)
end
end

function mob24673_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24673', math.random(1500, 3000), 1)
end

function mob24673_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24673_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24673_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24673, 1, 'mob24673_Action')
RegisterUnitEvent(24673, 2, 'mob24673_Leave')
RegisterUnitEvent(24673, 3, 'mob24673_Kill')
RegisterUnitEvent(24673, 4, 'mob24673_Die')
